exports.MMGiftModel = Core.Class.subclass(
{
	classname:'MMGiftModel',
								   
    initialize: function(giftModel) 
    {
    	this._giftObj = null;
    	
    	if(giftModel) {
    		this._giftObj = giftModel;
    	} else {
    		this._giftObj = {"giftId": 1,"senderName": "Cobalt Play","senderId": -1,"itemId" : "2_1_1"};
    	}
    },
    
    getGiftId: function()
    {
    	return this._giftObj.giftId;
    },
    
    getItemId: function()
    {
    	if(this._giftObj)
    	{
    		return this._giftObj.itemId;
    	}
    },
    
    setItemId: function(itemId)
    {
    	this._giftObj.itemId = itemId;
    },
    
    getSenderName: function()
    {
    	if(this._giftObj)
        {
            return this._giftObj.senderName;
        }
    },
    
    setSenderName: function(name)
    {
        this._giftObj.senderName = name;
    },
    
    getSenderId: function()
    {
        return this._giftObj.senderId;
    },
        
    setSenderId: function(id)
    {
        this._giftObj.senderId = id;
    },
    
    updateModel: function()
	{
		MMGameState.getCurrentUser().updateModel();
	},
    						   
	destroy: function()
	{
		this._giftObj = null;	
	},
});